package com.geek.factory.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("production_plan")
@ApiModel("生产计划实体")
public class ProductionPlan {
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("计划编号（如plan-20250702-01）")
    private String planCode;

    @ApiModelProperty("生产的产品ID")
    private Long productId;

    @ApiModelProperty("产线ID")
    private Long productLineId;

    @ApiModelProperty("生产数量")
    private BigDecimal quantity;

    @ApiModelProperty("计划开始时间")
    private LocalDateTime planStartTime;

    @ApiModelProperty("计划结束时间")
    private LocalDateTime completeTime;

    @ApiModelProperty("状态：未开始/生产中/完成/已取消")
    private String status;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("是否已入库 0=否 1=是")
    private Integer isInStock;

}
